<%-- 
    Document   : AcceuilEtudiant
    Created on : 27 nov. 2013, 11:37:39
    Author     : zouafr
--%>


<%@page import="Form.FirstActionForm"%>
<%@page import="java.util.Iterator"%>
<%@page import="Objet.Note"%>
<%@page import="Objet.Etudiant"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>


<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Portail des Etudiants</title>
    </head>
    <body>
<jsp:useBean id="connexion" scope="request" class="Objet.QueryBD"/>
<jsp:useBean id="FormCo" scope="request" class="Form.FirstActionForm"/>
        <h1>Bienvenue sur le portail Etudiant</h1>
        <%
            Etudiant monEtu = connexion.creerEtudiant
                    ((String)FormCo.getLogin(),(String)FormCo.getMdp());
        %>
        
        <center>   
            <h1>Mes Absences</h1>
            
            <!--
           
            <table border ="1">
                <tr
                    <th>Matière</th>
                    <th>Notes</th>
                </tr>
                
            <!--%

                    Iterator<Note> monIt = (monEtu.getListNotes()).iterator();
                   while(monIt.hasNext())
                    {
                        Note maNote = monIt.next();
                        out.println("<tr><td>" + maNote.getModule()
                                +"</td><td>"+ maNote.getNote());
                    }
           %>
            
            
            </table>
            -->
            
         <form method="POST" action="EtudiantA.do">
            <table>

                <tr>
                    <input type="submit" name="action" value="Consulter Absence">
                </tr>
                <tr>
                    <input type="submit" name="action" value="Demander Absence">
                </tr>

            </table>
        </form>
            
        </center>
    </body>
</html>